package xyz.heyaoshare.core.controller.system.dict.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import xyz.heyaoshare.common.entity.bo.PageParam;

import java.io.Serial;
import java.io.Serializable;

/**
 * 字典类型分页请求对象
 * @author YueHe
 * @version 0.0.1
 * @since 2025/5/9 下午5:05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "字典类型分页请求对象")
public class DictTypePageReqVO extends PageParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Length(max = 50, message = "字典名称长度不能超过{max}字符")
    @Schema(description = "字典名称")
    private String name;

    @Length(max = 50, message = "字典类型长度不能超过{max}字符")
    @Schema(description = "字典类型")
    private String type;

}
